<?php

class Ouvidoria_model extends Model {

    public function listaOuvidoria()
    {
        try {
            $query = Doctrine_Query::create()
                     ->from("NwsFaq f")
                     ->innerJoin("f.NwsCliente c")
                     ->where("f.cliCod = c.cliCod");
            $ouvidoria = $query->execute();
            return $ouvidoria;
        } catch (Doctrine_Exception $e) {
            print $e->getMessage();
        }   
    }		
}

?>
